#
#   __init__.py.py
#   journalismManger
#
#   Created by luoxh on 2019-07-23-12:10.
#   Copyright © 2019 luoxh. All rights reserved.
#


class AdminVM(dict):

    def __init__(self, admin, **kwargs):
        super().__init__(**kwargs)
        self['id'] = str(admin['id'])
        self['username'] = admin['username']
        self['nickname'] = admin['nickname']
        self['birthday'] = admin['birthday']
        self['account_type'] = admin['account_type']
        self['is_lock'] = admin['is_lock']
        self['skill'] = admin['skill']
        self['location'] = admin['location']
        self['git_address'] = admin['git_address']
        self['position'] = admin['position']
